# -*- coding: utf-8 -*-
"""
Created on Mon Nov 23 14:51:52 2015

@author: liliangrong
"""
"""将一个数组逆序输出。"""

if __name__ == '__main__':
    a = [9,6,5,4,1]
    n = len(a)
    print a
    for i in range(n/2):
        a[i],a[(-1)*i-1] = a[(-1)*i-1],a[i]
    print a